import { fileURLToPath, URL } from 'node:url'

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import prismjs from 'vite-plugin-prismjs';
export default defineConfig({
  plugins: [
    vue(),
    prismjs({
      languages: 'all',
      // 配置行号插件
      plugins: ['line-numbers'],
      /*// 主题名
      theme: 'coy',
      css: true*/
    }),
  ],
  resolve: {
    alias: {
      '@': fileURLToPath(new URL('./src', import.meta.url))
    }
  }
})
